<?
	// mas informacion
	$ncAtractivo = getParam(ncAtractivo);
	$lang = $this->getLanguage();
	
	$oAtractivo = $this->aDatos[$cTemplateId][oAtractivo];
	$ncAtractivo = $oAtractivo[ncAtractivo];
	$aDatos[] = array ( $ncAtractivo, str_replace('"', '&ldquo;', extractLanguage($oAtractivo[cdAtractivo], $lang) ), $oAtractivo['nLatitud'], $oAtractivo['nLongitud'] , $oAtractivo[cDireccion] , $oAtractivo[cPaginaWeb] , $oAtractivo[cTelefono] , $oAtractivo[cEmail]   );	
	
	$cSql = "SELECT Rec.ncRecorrido, cdRecorrido, RAt.cDescripcion, cdCategoriaRecorrido 
				FROM gtRecorridoAtractivo RAt
				JOIN gtRecorrido Rec ON Rec.ncRecorrido = RAt.ncRecorrido 
				JOIN gcCategoriaRecorrido CRe ON CRe.ncCategoriaRecorrido = Rec.ncCategoriaRecorrido 
				WHERE ncAtractivo = $ncAtractivo";
	$aRecorridos = $this->oDatabase->getMatrix( $cSql );
?>
	<div style="overflow: auto;">
		<?
		$nCont = 1;
		$nLinea = 1;
		foreach ( $aRecorridos as $aRecorrido )
		{
			$cBackColor = ( ( $nLinea % 2 ) == 0 )? "EEE" : "FFF";
			if ( ( $nCont % 2 ) != 0 ) echo "<div style='clear:auto; overflow: hidden;background-color: #$cBackColor; border-bottom: 1px dashed #CCC'>";
			$cBorder = ( ( $nCont % 2 ) != 0 )? "border-right: 1px dashed #CCC" : " ";
			echo "	<div style='float:left; width:355px; padding: 4px;'>
						<div style='padding-right: 3px; $cBorder'>
							<div style='color: #1B1819; font-size: 12px; font-weight: bold'>$aRecorrido[cdCategoriaRecorrido] <span style='color: #999; font-size: 10px'>(".extractLanguage( $aRecorrido[cdRecorrido], $lang ).")</span></div>
							<div style='border: 1px solid #$cBackColor'>".extractLanguage( $aRecorrido[cDescripcion], $lang )."</div>
						</div>
					</div>";
			$nLinea = ( ( $nCont % 2 ) == 0 )? $nLinea + 1 : $nLinea;
			$nCont++;
			if ( ( $nCont % 2 ) != 0 ) echo "<div>&nbsp;</div></div>";
		}
		?>
	</div>